﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" CodeBehind="addemployee.aspx.cs" Inherits="ProjectSem3.Admin.WebForm6" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 <script language="javascript" type="text/javascript">
     $(document).ready(function () {
         $('#form1').validate({
             rules: {
                 <%=txtfirstname.UniqueID %>: {
                     required: true
                 },

                 <%=txtlastname.UniqueID %>: {
                    required: true
                 },
                 <%=txtusername.UniqueID %>: {
                    minlength: 6,
                    maxlength: 12,
                    required: true
                 },
                 <%=txtpassword.UniqueID %>: {
                    required: true
                 },
                 <%=txtsalary.UniqueID %>: {
                    required: true,
                    number: true,
                    min:1
                 },
                 <%=txtaddress.UniqueID %>: {
                    required: true
                 },
                 <%=txtcontactinfo.UniqueID %>: {
                    required: true
                 },
                 <%=txtcountry.UniqueID %>: {
                    required: true
                 },
                 <%=txtcity.UniqueID %>: {
                    required: true
                 },
             }
             
         });
     });
    </script>

 <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
							<div class="portlet-header ui-widget-header">
                            <span class="ui-icon ui-icon-circle-arrow-s"></span><a href="accountuser.aspx" style="color:#FFF;">Account User <<< </a></div>
							<div class="portlet-content">
									<ul style="margin:0 0 0 250px;">
                                        <li style="width:385px;">
                                            <asp:Label ID="Label5" runat="server" Text="First Name"></asp:Label>
											<div>
												<input id="txtfirstname" runat="server" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:42px; width:236px;" />
											</div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label6" runat="server" Text="Last Name"></asp:Label>
											<div>
												<input runat="server" id="txtlastname" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:43px; width:236px;" />
											</div>
										</li>
										<li style="width:385px;">
                                            <asp:Label ID="Label1" runat="server" Text="Username"></asp:Label>
											<div>
                                                <input runat="server" id="txtusername" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:46px; width:236px;" />
                                                <asp:RegularExpressionValidator ID="regexpName" runat="server" 
                                                    ErrorMessage="Username no valid." ControlToValidate="txtusername"     
                                                            ValidationExpression="^[a-zA-Z_.\d]{1,40}$" ForeColor="Red" style="margin-left:100px;" ></asp:RegularExpressionValidator>
											</div>
										</li>
										<li style="width:385px;">
                                            <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
											<div>
												<input runat="server" id="txtpassword" type="password" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:48px; width:236px;" />												
											</div>
										</li>
										<li style="width:385px;">
                                            <asp:Label ID="Label3" runat="server" Text="Retype Password"></asp:Label>
											<div>
												<input runat="server" id="txtretype" type="password" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:7px; width:236px;" />
											</div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label8" runat="server" Text="Salary"></asp:Label>
											<div>
												<input runat="server" id="txtsalary" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:64px; width:236px;" />
                                             </div>
                                        </li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label9" runat="server" Text="Address"></asp:Label>
                                            <div>
                                                <input runat="server" id="txtaddress" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:53px; width:236px;" />
                                            </div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label10" runat="server" Text="Contact Info"></asp:Label>
											<div>
												<input runat="server" id="txtcontactinfo" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:33px; width:236px;" />
											</div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label12" runat="server" Text="Country"></asp:Label>
											<div>
												<input runat="server" id="txtcountry" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:57px; width:236px;" />
											</div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Label13" runat="server" Text="City"></asp:Label>
											<div>
												<input runat="server" id="txtcity" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:77px; width:236px;" />
											</div>
										</li>
                                        <li style="width:385px;">
                                            <asp:Label ID="Labelkq" runat="server" Text="" style="color:Red; margin-left:100px;"></asp:Label>
                                        </li>	
										<li class="buttons" style="width:355px;">
                                            <asp:Button ID="ButtonInsert" runat="server" Text="Insert" 
                                                style="margin-left:100px;" onclick="ButtonInsert_Click" />
										</li>
									</ul>
							</div>
		</div>
</asp:Content>
